package com.lsa.tools;

public class GenerateNxN_Matrix {
	static int n = 6;

	public static void main(String[] args) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				System.out.print(String.format("%3s", (i*n + j)+ " "));
			}
			System.out.println();
		}
	}
}
